home *** CD-ROM | disk | FTP | other *** search
/ Alde ADA 1: #1 / CCCC 8804 Volume 1 Number 1 - Alde.iso / C / MISC / LIB / DLIBSSRC.ARC / STRCPY.C < prev    next >
Encoding:
Text File  |  1987-06-14  |  281 b   |  15 lines

  1. char *strcpy(dest, source)
  2. register char *dest;
  3. register char *source;
  4. /*
  5.  *    Copies the <source> string to the <dest> including the '\0'.  A
  6.  *    pointer to the start of <dest> is returned.
  7.  */
  8. {
  9.     register char *p = dest;
  10.  
  11.     while(*dest++ = *source++)
  12.         ;
  13.     return(p);
  14. }
  15.